.cart_page {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	background: #f0f2f6;
}

.cart_header {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 1rem 1.4rem;

	.tips {
		color: #333;
		flex: 1;
	}

	.btn {
		padding: 2px 6px;
		color: green;
	}
}

.cart_body {
	flex: 1;
	overflow-y: auto;
}

.cart_list {
	background: white;
	padding: 1.4rem;
	margin-bottom: 1.4rem;
}

.cart_list_img {
	width: 8.8rem;
	height: 8.8rem;
}

button,
input {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	outline: none;
	border: none;
	text-align: center;
}

.cart_list_content {
	flex: 1;
	margin-left: 1rem;
	display: flex;
	flex-direction: column;

	.title {
		color: #333;
		font-size: 1.4rem;
		overflow-y: hidden;
		text-overflow: ellipsis;
		/*设置隐藏部分为省略号*/
		overflow: hidden;
		/*设置隐藏*/
		display: -webkit-box;
		-webkit-line-clamp: 2;
		/*设置显示行数，此处为2行，可设置其他数字*/
		-webkit-box-orient: vertical;
	}

	.top {
		margin-top: 0.6rem;
	}

	.tag {
		background-color: #f0f2f6;
		border-radius: 6px;
		padding: 2px;
		font-size: 1.0rem;
	}

	.footer_box {
		margin-top: 0.6rem;
		display: flex;
		flex-direction: row;
		align-items: center;

		.number {
			padding: 1.4rem;
			font-size: 1.2rem;
			color: #333;
		}

		.btn_sub {
			width: 2.8rem;
			height: 2.8rem;
			border-radius: 4px;
		}
	}
}

.top_10 {
	margin-top: 1.4rem;
}

.cart_footer {
	background: white;
	padding: 1rem 1.4rem;
	display: flex;
	flex-direction: row;
	align-items: center;
}

.total_box {
	margin-left: 1.4rem;
	flex: 1;
}

.total_box_row {
	display: flex;
	flex-direction: row;
	font-size: 1.4rem;
	align-items: baseline;

	.title {
		font-weight: bold;
	}

	.unit {
		color: red;
		font-size: 1.0rem;
		margin-left: 0.5rem;
	}

	.price {
		color: red;
		font-size: 2rem;
		font-weight: bold;
	}

	.des {
		font-size: 1.0rem;
		color: #999;
		margin-left: 0.5rem;
	}
}

.total_box_des {
	margin-top: 0.4rem;
	color: #999;
}

.settlement {
	background: green;
	border-radius: 3rem;
	color: white;
	padding: 1rem 1.4rem;
}

/* 隐藏原生的复选框 */
.custom-checkbox {
	display: flex;
	flex-direction: row;
	align-items: center;

	.checkbox_text {
		color: #333;
		font-size: 1.5rem;
		font-weight: bold;
	}
}

.custom-checkbox input[type="checkbox"] {
	display: none;
}

/* 创建自定义复选框的外观 */
.custom-checkbox .checkmark {
	display: inline-block;
	width: 2rem;
	/* 复选框的宽度 */
	height: 2rem;
	/* 复选框的高度 */
	background: #eee;
	/* 未选中状态下的背景色 */
	margin-right: 1.4rem;
	/* 与文本的距离 */
	border-radius: 50%;
	/* 圆角 */
	position: relative;
	/* color: #333;
	box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1) inset, 0 1px 4px rgba(0, 0, 0, 0.1) inset, 1px -1px 2px rgba(0, 0, 0, 0.1); */
}


/* 当复选框被选中时 */
.custom-checkbox input[type="checkbox"]:checked+.checkmark {
	background: green;
	/* 选中状态下的背景色 */
	-webkit-transition: all 0.15s ease-in;
	transition: all 0.15s ease-in;
}

/* 创建复选框内部的对勾 */
.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	/* 对勾的宽度 */
	height: 10px;
	/* 对勾的高度 */
	border: solid white;
	/* 对勾的颜色 */
	border-width: 0 2px 2px 0;
	/* 对勾的边框 */
	transform: rotate(45deg);
	/* 对勾的旋转角度 */
}
